package com.example.srm.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.srm.domain.TRole;
import com.example.srm.domain.TUser;
import com.example.srm.domain.tree.Tree;

import java.util.List;

/**
*
*/
public interface TUserService extends IService<TUser> {

    List<Tree> getPermissionById(String id);

    List<Tree> getPermissionTreeById(String id);
    //根据用户uid查询角色的角色
    List<TRole> getRolesByUserId(String id);

    boolean updatePermissionForRedis(String userId);

    TUser getUserByToken(String token);
}
